<?php

namespace app\shop\model;

use think\Model;

class MemberCoupon extends Model
{
    //会员优惠券和优惠券多对一
    public function coupon()
    {
        return $this->belongsTo('Coupon','coupon_id','id')->where('status',1)->field('id,parenTid');
    }
}